.tj-collapse {
  display: flex;
  flex: 1;
  height: 1%;
  padding: var(--tj-content-p);
  .left,
  .right {
    position: relative;
    box-sizing: border-box;
    width: 50%;
    height: 100%;
    padding: var(--tj-content-p);
    overflow: hidden;
    background: var(--bg-main);
    border-radius: var(--tj-border-radius-base);
    transform-origin: left;
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.2s ease, width 0.2s ease;

    .btn {
      position: absolute;
      top: 50%;
      right: 0;
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 16px;
      height: 66px;
      color: var(--arrow-color);
      font-size: 12px;
      background: var(--arrow-bg);
      border-radius: 20px 0 0 20px;
      transform: translateY(-50%);
      cursor: pointer;
      transition: font 0.3s ease;
      &:hover {
        font-size: 14px;
      }

      .icon-rotate {
        transform: rotate(180deg);
      }
    }
  }

  .left {
    margin-right: 6px;
  }

  .h-left-m {
    margin: 0;
  }

  .right {
    transform-origin: right;
    .btn {
      left: 0;
      border-radius: 0 20px 20px 0;
    }
  }

  .tj-collapsed {
    padding: 0;
    transform: scaleX(0);
    opacity: 0;
  }
}
